import { createSSRApp } from "vue";
import * as Pinia from 'pinia';
import tmui from "./tmui"
import App from "./App.vue";
import piniaCustomer from "@/stores/index";
import AppDirectives from "./directives";

export function createApp() {
  const app = createSSRApp(App);
  app.use(tmui, { shareDisable: false } as Tmui.tmuiConfig)
  app.use(AppDirectives);
  // app.use(piniaCustomer)
  return {
    app,
    Pinia,
    piniaCustomer
  };
}
